<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="${staticServer}/inc/style/main.css" />
<link rel="stylesheet" href="${staticServer}/inc/style/page.css" />
<link rel="stylesheet" href="${staticServer}/css/work_today.css" />
<script src="${staticServer}/inc/js/jquery.js"></script>
<script src="${staticServer}/inc/js/pageset.js"></script>
<script>
</script>
</head>

<body>
	<div id="home_link">
		<ul>
			<li>竞思教育网络办公系统 v2.0 beta</li>
			<li>&gt;</li>
			<li>工作管理</li>
			<li>&gt;</li>
			<li class="current">查看历史工作记录</li>
		</ul>
	</div>
	<div id="container">
		<div id="title">（<span class="stress">2</span> 天以内的工作日志可以补填）
		</div>
		<table>
			<tr class="fields">
				<th>姓名</th>
				<th>办公地址</th>
				<th>职位</th>
				<th>日期</th>
				<th width="15%">详情</th>
			</tr>
			<#if list??>
				<#list list as list>
					<#if list_index == 0 && list.createTime!=today>
					
					<#elseif list_index == 0 && list.createTime==createTime>
						<tr class="odd_row">
							<td align="center" class="stress">${list.nickName}</td>
							<td align="center">${list.region}</td>
							<td align="center">${list.department}（${list.job}）</td>
							<td align="center">${list.createTime}</td>
							<td align="center">
								<a href="${contextPath}/index/work_view.htm?time=${list.createTime}&username=${list.username}">查看详情</a>
							</td>
						</tr>
					</#if>
					
					<#if list_index == 1 && list.createTime!=BeforeDay>
						<tr>
							<td colspan='6'>补填或修改 <span class='stress'>${BeforeDay}</span> 的工作日志：
							<a href="${contextPath}/index/work_today.htm?date=${BeforeDay}&username=${list.username}">点击此处进入</a></td>
						</tr>
					<#elseif list_index == 1 && list.createTime==BeforeDay>
						<tr class="odd_row">
							<td align="center" class="stress">${list.nickName}</td>
							<td align="center">${list.region}</td>
							<td align="center">${list.department}（${list.job}）</td>
							<td align="center">${list.createTime}</td>
							<td align="center">
								<a href="${contextPath}/index/work_today.htm?date=${BeforeDay}&username=${list.username}">补填</a> - 
								<a href="${contextPath}/index/work_view.htm?time=${list.createTime}&username=${list.username}">查看详情</a>
							</td>
						</tr>
					<#elseif list_index == 2 && list.createTime==BeforetwoDay>
						<tr class="odd_row">
							<td align="center" class="stress">${list.nickName}</td>
							<td align="center">${list.region}</td>
							<td align="center">${list.department}（${list.job}）</td>
							<td align="center">${list.createTime}</td>
							<td align="center">
								<a href="${contextPath}/index/work_today.htm?date=${BeforetwoDay}&username=${list.username}">补填</a> - 
								<a href="${contextPath}/index/work_view.htm?time=${list.createTime}&username=${list.username}">查看详情</a>
							</td>
						</tr>
					</#if>
					
					<#if list_index == 2 && list.createTime!=BeforetwoDay>
						<tr><td colspan='6'>补填或修改 <span class='stress'>${BeforetwoDay}</span> 的工作日志：
						<a href="${contextPath}/index/work_today.htm?date=${BeforetwoDay}&username=${list.username}">点击此处进入</a></td></tr>
					<#elseif list_index == 2 && list.createTime==BeforeDay>
						<tr class="odd_row">
							<td align="center" class="stress">${list.nickName}</td>
							<td align="center">${list.region}</td>
							<td align="center">${list.department}（${list.job}）</td>
							<td align="center">${list.createTime}</td>
							<td align="center">
								<a href="${contextPath}/index/work_today.htm?date=${BeforetwoDay}&username=${list.username}">补填</a> - 
								<a href="${contextPath}/index/work_view.htm?time=${list.createTime}&username=${list.username}">查看详情</a>
							</td>
						</tr>
					</#if>
				</#list>
			</#if>
					
			<#if list??>
				<#list list as list>
					<#if list_index>
						<tr>
							<td align="center" class="stress">${list.nickName}</td>
							<td align="center">${list.region}</td>
							<td align="center">${list.department}（${list.job}）</td>
							<td align="center">${list.createTime}</td>
							<td align="center">
							<a href="${contextPath}/index/work_view.htm?time=${list.createTime}&username=${list.username}">查看详情</a>
							</td>
						</tr>
					</#if>
				</#list>
			</#if>
			
			
			
		</table>
	</div>
	<div id="pager">
	<ul id="pagination">
	<#if page??>
		<#if page.pagetotal?? && page.pagetotal!="0">
	<#assign pagetotal = page.pagetotal>
	<#else>
	<#assign pagetotal = 1>
	</#if>
			<#if page.currpage??>
	<#assign currpage = page.currpage>
	<#else>
	<#assign currpage = 1>
	</#if>
				<#if currpage==1 >
					<li class="previous-off">上一页</li>
					<#else>
					<li class="previous"><a href="${contextPath}/index/work_history.htm?currPage=${currpage-1}">上一页</a></li>
					</#if>
					
		<#if pagetotal<=11>
			<#list 1..pagetotal as index_up>  
	           <#if currpage==index_up > 
	           		<li class="current">${index_up}</li>
	           <#else>
	           		<li><a href="${contextPath}/index/work_history.htm?currPage=${index_up}">${index_up}</a></li>  
	           </#if>  
			</#list>  
		<#else>
			<#if currpage<=8 >
				<#list 1..9 as index_up>  
	           	<#if currpage==index_up >  
	            	<li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/work_history.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
	           	</#list>  
	           	<li>...</li>
	           	<li><a href="${contextPath}/index/work_history.htm?currPage=${pagetotal}">${pagetotal}</a></li>  
				
			<#elseif (currpage>= 9 && currpage<pagetotal-7)  >	
				<li><a href="${contextPath}/index/work_history.htm?currPage=1">1</a></li>  
				<li>...</li>
				<#list currpage-3..currpage+3 as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/work_history.htm?currPage=${index_up}">${index_up}</a></li>  
	           	</#if>
	           	</#list>
				<li>...</li>
	           	<li><a href="${contextPath}/index/work_history.htm?currPage=${pagetotal}">${pagetotal}</a></li>   
			<#else>
				<li><a href="${contextPath}/index/work_history.htm?currPage=1">1</a></li> 
				<li>...</li>
				<#list pagetotal-8..pagetotal as index_up>  
	           	<#if currpage==index_up >  
	             <li class="current">${index_up}</li>
	           	<#else>  
	               <li><a href="${contextPath}/index/work_history.htm?currPage=${index_up}">${index_up}</a></li> 
	           	</#if>
				</#list>  
			</#if>
			
		</#if> 
		<#if currpage==pagetotal >
		 	<li class="previous-off">下一页</li>
		<#else>
			<li class="previous"><a href="${contextPath}/index/work_history.htm?currPage=${currpage+1}">下一页</a></li>
		</#if>
		<li class="pageinfo">共${page.total}条记录</li>
	</#if>
		
		</ul>
	</div>
</body>
</html>